package com.ohs.bll.service;

import java.util.List;

import com.ohs.bo.form.LoginUser;
import com.ohs.dal.model.Account;
import com.ohs.dal.model.Location;
import com.ohs.dal.model.Specialty;
 
public interface AccountService {
	
	public boolean update(String username, String password, String name, String age, String title, long roleId, boolean addNew);
	
	public List<Account> list();
	
	public Account get(String username);
	
	public LoginUser checkLogin(String username, String password);
	
	public void delete(String username);
	
	public boolean createDoctor(Account account, String address, String name, long provinceId);
	
	public boolean updateDoctor(Account account, Location location, long provinceId, long[] specialtyArr);
	
	public boolean update(Account account);
	
	public boolean forgotPass(String info) throws Exception;
	
	public List<Specialty> getAllSpecialty();
}